//
//  QueryAttentionEntity.m
//  SXH
//
//  Created by 房 国生 on 15/8/5.
//  Copyright (c) 2015年 lyss. All rights reserved.
//

#import "QueryAttentionEntity.h"

@implementation QueryAttentionEntity

- (instancetype)initWithAttributes:(NSDictionary *)attributes {
    
    self = [super init];
    if (!self) {
        return nil;
    }
    self.userEntity = [[UserEntity alloc] init];
    self.userEntity = [self.userEntity initWithAttributes:attributes];
    
    NSArray *array  = [attributes valueForKeyPath:@"travel_rows"];
    self.mutableArrayFind = [[NSMutableArray alloc] init];
    
    for (NSDictionary* attributes in array) {
        FindEntity *entity = [[FindEntity alloc] init];
        entity = [entity initWithAttributes:attributes];
        [self.mutableArrayFind addObject:entity];
    }
    
    return self;
}

@end
